package com.sydata.cdrdata.mapper;


import com.sydata.cdrdata.domain.LinksFieldCdrRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


/**
 * 订单Mapper接口
 */
@Repository
public interface LinksFieldCdrMapper {


    public long selectLkCdrSeqId();
    @Transactional
    void insertBatch(List<LinksFieldCdrRecord> list);

    @Transactional
    void insert(LinksFieldCdrRecord record);


    /**
     * 通过imsi 获取imsi 下的 渠道、代理商 、iccid 等等信息
     * @param orderNo
     * @return
     */
    public List<Map<String, Object>> getImsiInfo(@Param("imsi") String imsi,@Param("billDate") String billDate);


    public List<Map<String, Object>> getImsiInfoTmp(@Param("iccid") String iccid,@Param("imsi") String imsi,@Param("recordFile") String recordFile);


    void updateCdrTmp(Map<String, Object> params);

    public Map<String, Object> getImsiInfoTmp2(@Param("lfOrderId") String lfOrderId);


    void updateRecordTmp(Map<String, Object> params);


}



